package com.ease.framework.gef4p.figures.edge {
   import com.ease.framework.figures.IFigure;
   import com.ease.framework.gef.ui.ISelection;
   import com.ease.framework.gef4p.figures.INodeFigure;
   import com.ease.framework.gef4p.figures.impl.edge.AbstractEdgeListener;

   public interface IEdgeFigure extends IFigure, ISelection {
      function get source():INodeFigure;
      function set source(s:INodeFigure):void;
      function get target():INodeFigure;
      function set target(t:INodeFigure):void;
      //1.初始化子节点
      function doCreateChildren():void;
      //2.绘制过程
      function drawing():void
      //3.这个方法用来处理移动等需要统一修改连线状态的问题。
      function refresh():void;
      function clean():void;

      function registerListener(listener:AbstractEdgeListener):void;
      function removeListener(listener:AbstractEdgeListener):void;
      function clearListeners():void;
   }
}